//
//  HandleCardCell.m
//  NewPro
//
//  Created by RYX on 2018/10/31.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import "HandleCardCell.h"
#import "HandleCardModel.h"

@interface HandleCardCell ()
{
    
    __unsafe_unretained IBOutlet UIImageView *im;
    __unsafe_unretained IBOutlet UILabel *titleLa;
    
    __unsafe_unretained IBOutlet UILabel *typeLa;
    __unsafe_unretained IBOutlet UILabel *desLa;
    
}


@end

@implementation HandleCardCell

+ (instancetype)tempWithTableView:(UITableView *)tableView{
    
    
    HandleCardCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CELL"];
    
    if (!cell) {
        
        cell = [self Cell];
    }
    
    return cell;
}

+ (CGFloat)getHeight{
    
    UITableViewCell *cell = [self Cell];
    return cell.frame.size.height;
    
}

+ (instancetype)Cell{
    
    ClassName
    return [[[NSBundle mainBundle] loadNibNamed:className owner:self options:nil] objectAtIndex:0];
    
}

- (void)setModel:(HandleCardModel *)model{
    
    [im sd_setImageWithURL:[NSURL URLWithString:model.imgBank]];
    titleLa.text = model.bankName;
    typeLa.text = model.type;
    desLa.text = model.detail;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
